-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Adjustments to tabs components to prevent overflows #2278
Conversation
Signed-off-by: Josh Slaughter <[email protected]>
Signed-off-by: Josh Slaughter <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
padding: 8px 0px 0px 14px; | ||
margin-bottom: -16px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use spacer- tokens here?
padding: 8px 0px 0px 14px; | ||
margin-bottom: -16px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
padding: 8px 0px 0px 14px; | |
margin-bottom: -16px; | |
padding: $spacer-1 0px 0px 14px; | |
margin-bottom: -$spacer-2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good based on the test in our staging environment.
Description
css/_layouts.scss
- Removed the min-heights and instead let it utilize the height of its container, which wont force it past acceptable limitsTable/styles.scss
- increasedmin-width
to 100% to fill the container, set the header widths to auto and removed the top marginTabsComponent/styles.scss
- Set the height to 100%, utilizing flex to allow the contents to grow but not overflow. Limited the overflow scrolling to the inner table versus the entire containerTableDetailPage/styles.scss
- Switched from fixed to absolute positioning so it would stop overflowing, removed the background and adjusted the positioning at smaller sizes so it wouldn't overlapTableDetailPage/index.tsx
- Removed the visibility handlers that hid the Collapse all functionality and instead rotated it above the tabs at small enough sizesMotivation and Context
Scrolling in the container would cause the tabs components to overflow out of position
Before
After
How Has This Been Tested?
Manually and comparison against production
CheckList